use rbatis::rbatis::Rbatis;

lazy_static! {
    pub static ref RB:Rbatis=Rbatis::new();
}

pub async fn init_rbatis() {
    //连接数据库
    RB.link("mysql://root:new_password@10.10.10.53:3306/singing").await.expect("[abs_admin] rbatis link database fail!");
    println!("[abs_admin] rbatis link database success!");
}